<?php
	session_start();

	$path=$_SERVER["DOCUMENT_ROOT"]."/Clase/php/FORO/clases/";
    include_once ($path."Categoria.php");
    $categoria=new Categoria();
?>
<html>
    <head>
        <title>FORO</title>
        <link href="CSS/styles.css" type="text/css" rel="stylesheet" media="screen">
        <script>
			function goTo(id){window.location="./categoria.php?id="+id;}
        </script>
    </head>
    <body>
    <div class="contenedor">
        <?php include_once ($path."menu.php");?>
        	<div class="resultat"><div class="resultatItem">Categoria</div><div class="resultatItem" style="margin-left:40%;">Numero de temas</div></div>
        <?php
            echo $categoria->printCategories();	
        ?>
     </div>  
    </body>
</html>